package com.template.templateuser.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "SysDeptDTO", description = "部门")
public class SysDeptDTO implements Serializable {

    private Long id;
    @ApiModelProperty("上级部门")
    private Long parentId;
    @ApiModelProperty("部门名称")
    private String deptName;
    @ApiModelProperty("排序")
    private Integer orderNum;
    @ApiModelProperty("部门领导")
    private  Long leaderId;
    @ApiModelProperty("电话")
    private String  phone;
    @ApiModelProperty("邮箱")
    private  String   email;
    @ApiModelProperty("部门状态（0正常 1停用）")
    private   Integer  status;
    @ApiModelProperty("是否删除（0：否，1：是）")
    private   Integer  deleted;
    @ApiModelProperty("创建人id")
    private    Long   createId;

    private List<SysDeptDTO> children;

    private String parentName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  LocalDateTime  createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private   LocalDateTime  updateTime;

}
